package vista

import code._
import org.uqbar.arena.widgets.Panel
import org.uqbar.arena.layout.VerticalLayout
import org.uqbar.arena.widgets.TextBox
import org.uqbar.arena.widgets.Button
import java.awt.Color
import org.uqbar.arena.windows.SimpleWindow
import org.uqbar.arena.windows.WindowOwner


class AgregarRestriccionWindow(owner: WindowOwner) extends SimpleWindow[Restriccion](owner, new Restriccion(12,3,2014)) {
  override def addActions(actionsPanel: Panel) = {

  }

  override def createFormPanel(mainPanel: Panel) {

    this.setTitle("Agregar Restriccion")

    mainPanel.setLayout(new VerticalLayout)

   

    new Button(mainPanel)
	  .setCaption("Aceptar")
	  //.onClick(new MessageSend(this.getModelObject(), "cambiarNombre"))
      .setBackground(Color.ORANGE)
     
    new Button(mainPanel)
	  .setCaption("Cancelar")
	  //.onClick(new MessageSend(this.getModelObject(), "cambiarNombre"))

  }
} 